import { Component } from '@angular/core';
import { QuestionService } from './question.service';

@Component({
    moduleId: module.id,
    template: `
    <div>
        <h2>Job Application for Heroes</h2>
        <guide-dynamic-form [questions]="questions"></guide-dynamic-form>
    </div>`,
    providers: [QuestionService]
})

export class DynamicIndexComponent {
    questions: any[];
    constructor(service: QuestionService) {
        this.questions = service.getQuestions();
    }
}